﻿using System;
using System.Collections.Generic;
using System.Configuration;

namespace Utils
{
    class ApplicationConfig
    {
        public static string GetSettingByKey(ConfigKeys Key)
        {
            return ConfigurationManager.AppSettings[Key.ToString()];
        }

        public static string GetConnectionString()
        {
            return ConfigurationManager.ConnectionStrings["QLSX"].ToString();
        }
    }

    public enum ConfigKeys
    {
        SqlServerName,
        SqlServerUsername,
        SqlServerPassword
    }
}
